package cn.tedu.qxhouserent.house.mapper;

import cn.tedu.qxhouserent.house.pojo.entity.NewsCategory;
import cn.tedu.qxhouserent.house.pojo.vo.NewsCategoryListItemVO;
import cn.tedu.qxhouserent.house.pojo.vo.NewsCategoryStandardVO;
import cn.tedu.qxhouserent.house.pojo.vo.NewsListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsCategoryMapper extends BaseMapper<NewsCategory> {
    List<NewsCategoryListItemVO> list();

    List<NewsListVO> cha(Long id);

    String cha1(Long id);

    List<NewsListVO> listCategoryByUserId(Long id);

    List<NewsListVO> listMoCha(@Param("id") Long id, @Param("zid") Integer zid, @Param("s") String s);

    NewsCategoryStandardVO getStandardById(Long id);
}
